import request from '@/utils/request'

// 查询汽车管理列表
export function listVehicles(query) {
  return request({
    url: '/basic/vehicles/list',
    method: 'get',
    params: query
  })
}

// 查询汽车管理详细
export function getVehicles(query) {
  return request({
    url: '/basic/vehicles',
    method: 'get',
    params: query
  })
}

// 新增汽车管理
export function addVehicles(data) {
  return request({
    url: '/basic/vehicles',
    method: 'post',
    data: data
  })
}

// 修改汽车管理
export function updateVehicles(data) {
  return request({
    url: '/basic/vehicles',
    method: 'put',
    data: data
  })
}

// 删除汽车管理
export function delVehicles(vehicleId) {
  return request({
    url: '/basic/vehicles/' + vehicleId,
    method: 'delete'
  })
}

// 获取木的
